Ext.define('Jee.data.JeeAjaxProxy',{
    extend: 'Ext.data.proxy.Ajax',
    type: 'ajax',
    url:'json/',
   
    actionMethods: {
        create : 'POST',
        read   : 'POST',
        update : 'POST',
        destroy: 'POST'
    },
    reader: {
    	 model:'Jee.model.security.user.UserModel',
            type: 'json',
            root: 'data.rows',
            totalProperty:'data.total',
            successProperty: 'successFlag'
    },
    buildRequest: function(operation) {
        var params = Ext.applyIf(operation.params || {}, this.extraParams || {}),
            request;
        params = Ext.applyIf(params, this.getParams(operation));
        if (operation.id && !params.id) {
            params.id = operation.id;
        }
        request = Ext.create('Ext.data.Request', {
            params   : params,
            action   : operation.action,
            records  : operation.records,
            operation: operation,
            jsonData:operation.jeeRequest,
            url      : operation.url
        });
        request.url = this.buildUrl(request);
        operation.request = request;
        return request;
    },
});